<!doctype html>
<html>
<head>
<meta charset="utf-8">
  <title>店铺街-{$tpshop_config['shop_info_store_title']}</title>
  <link rel="stylesheet" href="__STATIC__/css/stores.css">
  <link rel="stylesheet" href="__STATIC__/css/Common.css">
  <link rel="stylesheet" href="__STATIC__/css/page.css">
</head>

<body>
<include file="Public/header"/>
<div class="margin-w1210">
  <div class="flow">
    <div class="cate_attr clearfix">
      <div class="nav-tag">
        <h5 class="filter-label-ab">分类</h5>
        <div class="cate_attr_con">
          <div class="filter-all-ab"> <a class="selected" target="_self" href="{:U('Home/Index/street')}"><span>全部</span></a> </div>
          <div class="district-tab">
            <volist name="store_class" id="sc">
              <a target="_self" href="{:U('Home/Index/street',array('sc_id'=>$sc['sc_id']))}"><span>{$sc['sc_name']}</span></a>
            </volist>
          </div>
        </div>
      </div>
    </div>
    <div class="flow-wrap">
      <volist name="store_list" id="scl">
        <div class="flow-item first">
          <a href="{:U('Home/Store/index',array('store_id'=>$scl['store_id']))}" class="flow-datu" title="L&amp;L">
            <img title="L&amp;L" width="150" height="150" alt="" src="{$scl['store_logo']}">
          </a>
          <div class="flow-content">
            <h4 class="flow-title"> <a href="{:U('Home/Store/index',array('store_id'=>$scl['store_id']))}" title="{$scl['store_name']}"><span>{$scl['store_name']}</span></a>
              <span class="guanzhu" id="favoriteStore" data-id={$scl['store_id']}>关注</span>
            </h4>
            <p class="flow-logo">
              <a href="{:U('Home/Store/index',array('store_id'=>$scl['store_id']))}" style="float:none; display:inline-block;">
                <img id="j_logo_5" alt="" width="90" height="45" src="{$scl['store_banner']|default='__STATIC__/images/57c7ed6bcc96f.jpg'}">
              </a>
            </p>
            <p class="flow-desc"> <span>卖家：</span>
              <a href="supplier.php?suppId=5" title="{$scl['store_name']}管理员" target="_blank"></a>
              <a href="http://wpa.qq.com/msgrd?v=3&amp;uin={$scl['store_qq']}&amp;site=qq&amp;menu=yes" target="_blank" alt="点击这里联系我" title="点击这里联系我" class="flow-qq">
                <img src="__STATIC__/images/button_old_41.gif" height="16" border="0" alt="QQ"> </a>
              <a href="http://amos1.taobao.com/msg.ww?v=2&amp;uid={$scl['store_aliwangwang']}&amp;s=2" target="_blank" class="flow-qq">
                <img src="__STATIC__/images/T1B7m.XeXuXXaHNz_X-16-16.gif" width="16" height="16" border="0" alt="淘宝旺旺">
              </a>
            </p>
            <p class="flow-desc"> <span>所在地：</span>{$scl['province_name']},{$scl['city_name']},{$scl['district_name']} </p>
            <p class="flow-desc"> <a href="{:U('Home/Store/index',array('store_id'=>$scl['store_id']))}" title="进入店铺，查看所有的商品">共<strong>{$scl['goods_array']['goods_count']}</strong>件宝贝&gt;&gt;</a> </p>
          </div>
          <div class="flow-score">
            <h3>店铺动态评分</h3>
            <p>描述相符：<span>{$scl['store_desccredit']}</span></p>
            <p>服务态度：<span>{$scl['store_servicecredit']}</span></p>
            <p>发货速度：<span>{$scl['store_deliverycredit']}</span></p>
          </div>
          <div class="flow-main flow-main1">
            <div class="picMarquee-left">
              <div class="bda">
                <div class="picListta">
                  <ul>
                    <volist name="scl['goods_array']['goods_list']" id="goods">
                      <li>
                        <a href="{:U('Home/Goods/goodsInfo',array('id'=>$goods['goods_id']))}"
                           title="{$goods['goods_name']}" target="_blank" class="img">
                          <img src="{$goods['goods_id']|goods_thum_images=112,112}"> <span>￥{$goods['shop_price']}</span>
                        </a>
                        <a href="{:U('Home/Goods/goodsInfo',array('id'=>$goods['goods_id']))}" title="{$goods['goods_name']}" target="_blank" class="name">{$goods['goods_name']}</a>
                      </li>
                    </volist>
                  </ul>
                </div>
              </div>
            </div>
          </div>
        </div>
      </volist>
<div class="mui-page">
        <div class="mui-page-wrap">
          <div class="operating fixed" id="bottom">
            <div class="fn_page clearfix">
              {$page}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<include file="Public/footer"/>
<script type="text/javascript">
  //收藏店铺
  $('.guanzhu').click(function () {
    if (getCookie('user_id') == '') {
      pop_login();
    } else {
      $.ajax({
        type: 'post',
        dataType: 'json',
        data: {store_id: $(this).attr('data-id')},
        url: "{:U('Home/Store/collect_store')}",
        success: function (res) {
          if (res.status == 1) {
            layer.msg('成功添加至收藏夹', {icon: 1});
          } else {
            layer.msg(res.msg, {icon: 3});
          }
        }
      });
    }
  });
  function pop_login(){
    layer.open({
      type: 2,
      title: '<b>登陆TPshop网</b>',
      skin: 'layui-layer-rim',
      shadeClose: true,
      shade: 0.5,
      area: ['490px', '460px'],
      content: "{:U('Home/User/pop_login')}",
    });
  }
</script>
</html>
